home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / modelers / geomview / source.lha / Geomview / src / lib / gprim / discgrp / options.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-02-16  |  1.2 KB  |  54 lines

  1. #ifndef _options_
  2. #define _options_
  3.  
  4. #define MAC        0
  5. #define SUN        1
  6. #define VAX        2
  7. #define CRAY    3
  8. #define GENERIC    4
  9.  
  10. #define HOST    GENERIC
  11.  
  12. /*  LightspeedC has a few idiosyncracies which vary from one version
  13. to the next.  If you are using LightspeedC (a.k.a. THINK C) define the
  14. appropriate version number here (e.g. #define LSC 4 for version 4.0).
  15. If you aren't using LightspeedC (and perhaps not even using a Mac at
  16. all) you should #define LSC 0.  */
  17.  
  18. #if (HOST == MAC)
  19. #define LSC 4
  20. #else
  21. #define LSC 0
  22. #endif
  23.  
  24. #define PROTOTYPES    0
  25.  
  26. #if (LSC == 3)
  27. #define _MC68881_
  28. #endif
  29.  
  30. #if (HOST == MAC)
  31. typedef long int    int32;
  32. #else
  33. #include <stdlib.h>    /* to get size_t definition */
  34. typedef size_t        int32;
  35. #endif
  36.  
  37. /* The constant HARDWARE_PRECISION gives the accuracy of a double    */
  38. /* precision floating point number on the host hardware.  I.e. if    */
  39. /* the mantissa of a double has b bits, HARDWARE_PRECISION is 2^-b.    */
  40. /* Note:  in the unlikely event that HARDWARE_PRECISION < 1e-21        */
  41. /* you'll have to provide more coefficients in the series for the    */
  42. /* Lobachevsky function in volume.c.                                */
  43. #if (HOST == MAC)
  44. #define HARDWARE_PRECISION    6e-20
  45. #else
  46. #define HARDWARE_PRECISION    4e-15
  47. #endif
  48.  
  49. #if PROTOTYPES
  50. #include "global_prototypes.h"
  51. #endif
  52.  
  53. #endif
  54.